#include <QHBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <QPixmap>

#include "main_window.h"

MainWindow::MainWindow()
{
	setWindowTitle(tr("Demo"));

	QLabel* label = new QLabel;
	QPixmap* pix = new QPixmap(49, 49);
	pix->load(":/images/image.jpg");
	label->setPixmap(QPixmap(":/images/image.jpg"));
//    label->show();

	QPushButton* button = new QPushButton(tr("&Cool!"));
	connect(button, SIGNAL(clicked()), this, SLOT(close()));

	QHBoxLayout* layout = new QHBoxLayout(this);
	layout->addWidget(label);
	layout->addWidget(button);
}
